package com.special.threademo.jvm.classLoader;

import com.sun.org.apache.bcel.internal.generic.NEW;

/**
 * Created with IDEA2020.3
 * author:LiuYC
 * DateTime:2021/1/23  14:37
 * 测试接口对应的初始化，不会先初始化其父类的dmeo
 */
public class InterfaceDemo {
    public static void main(String[] args) {
        System.out.println(mychild.b);
    }
}

interface myparent {
    public static Thread thread = new Thread() {
        {
            System.out.println("myblock invoked");
        }
    };
    //public static int a = 5;
}

class mychild implements myparent {
    public static int b = 6;
}
